<template>
  <div class="pane-phone">
    <el-form label-width="60px" size="large" :model="phoneLogin">
      <el-form-item label="手机号">
        <el-input style="width: 220px" v-model="phoneLogin.name"></el-input>
      </el-form-item>
      <el-form-item label="验证码">
        <div class="verify-code">
          <el-input style="width: 100px" v-model="phoneLogin.code"></el-input>
          <el-button class="get-btn" type="primary">获取验证码</el-button>
        </div>
      </el-form-item>
    </el-form>
  </div>
</template>

<script setup lang="ts">
import { reactive } from 'vue'
import type { IPhone } from '@/types/login'

const phoneLogin = reactive<IPhone>({
  name: '',
  code: ''
})
</script>

<style lang="less" scoped>
.pane-phone {
  .verify-code {
    display: flex;
    .get-btn {
      margin-left: 6px;
    }
  }
}
</style>
